Skip to content

Conversation

evgTSV
Copy link
Contributor

@evgTSV evgTSV commented Oct 3, 2025

Enhance the F# compiler’s type checker to correctly support and validate nested field updates (with depth > 1) for both anonymous and records. Add tests to cover these scenarios, and perform minor refactoring.

Fixes #18940
Fixes #18062

Copy link
Contributor

github-actions bot commented Oct 3, 2025

❗ Release notes required

@evgTSV,

Caution

No release notes found for the changed paths (see table below).

Please make sure to add an entry with an informative description of the change as well as link to this pull request, issue and language suggestion if applicable. Release notes for this repository are based on Keep A Changelog format.

The following format is recommended for this repository:

* <Informative description>. ([PR #XXXXX](https://github.com/dotnet/fsharp/pull/XXXXX))

See examples in the files, listed in the table below or in th full documentation at https://fsharp.github.io/fsharp-compiler-docs/release-notes/About.html.

If you believe that release notes are not necessary for this PR, please add NO_RELEASE_NOTES label to the pull request.

You can open this PR in browser to add release notes: open in github.dev

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/11.0.0.md No release notes found or release notes format is not correct

@evgTSV evgTSV requested a review from auduchinok October 4, 2025 12:11
@edgarfgp
Copy link
Contributor

edgarfgp commented Oct 5, 2025

I think this might also fix #18062 ?

@evgTSV
Copy link
Contributor Author

evgTSV commented Oct 5, 2025

Yes, this fixes that issue too

@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Oct 13, 2025
@T-Gro T-Gro enabled auto-merge (squash) October 13, 2025 08:53
auto-merge was automatically disabled October 14, 2025 14:57

Head branch was pushed to by a user without write access

@evgTSV evgTSV requested review from T-Gro and vzarytovskii October 14, 2025 14:57
@edgarfgp
Copy link
Contributor

/run fantomas

Copy link
Contributor

🔧 CLI Command Report

  • Command: /run fantomas
  • Outcome: success

✅ Patch applied:
- Files changed: 2
- Lines changed: 43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Nested field update doesn't type-check properly Copy and update record expression doesn't compile when the record comes from a function

6 participants